
class CollectionListTransferDetailModel {
  int? cancelTime;
  String? closeTime;
  String? collectionName;
  int? count;
  String? coverImageUrl;
  String? createTime;
  int? currentTime;
  String? daoName;
  String? icon;
  int? id;
  String? orderCode;
  String? orderStatus;
  String? payChannel;
  double? payPrice;
  String? payTime;
  String? payType;
  String? receiveAddress;
  String? sendAddress;
  double? singlePayPrice;
  List<dynamic>? tokenIdList;

  CollectionListTransferDetailModel({this.cancelTime, this.closeTime, this.collectionName, this.count, this.coverImageUrl, this.createTime, this.currentTime, this.daoName, this.icon, this.id, this.orderCode, this.orderStatus, this.payChannel, this.payPrice, this.payTime, this.payType, this.receiveAddress, this.sendAddress, this.singlePayPrice, this.tokenIdList});

  CollectionListTransferDetailModel.fromJson(Map<String, dynamic> json) {
    cancelTime = (json["cancelTime"] as num).toInt();
    closeTime = json["closeTime"];
    collectionName = json["collectionName"];
    count = (json["count"] as num).toInt();
    coverImageUrl = json["coverImageUrl"];
    createTime = json["createTime"];
    currentTime = (json["currentTime"] as num).toInt();
    daoName = json["daoName"];
    icon = json["icon"];
    id = (json["id"] as num).toInt();
    orderCode = json["orderCode"];
    orderStatus = json["orderStatus"];
    payChannel = json["payChannel"];
    payPrice = (json["payPrice"] );
    payTime = json["payTime"];
    payType = json["payType"];
    receiveAddress = json["receiveAddress"];
    sendAddress = json["sendAddress"];
    singlePayPrice = json["singlePayPrice"];
    tokenIdList = json["tokenIdList"] ?? [];
  }

  static List<CollectionListTransferDetailModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(CollectionListTransferDetailModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["cancelTime"] = cancelTime;
    _data["closeTime"] = closeTime;
    _data["collectionName"] = collectionName;
    _data["count"] = count;
    _data["coverImageUrl"] = coverImageUrl;
    _data["createTime"] = createTime;
    _data["currentTime"] = currentTime;
    _data["daoName"] = daoName;
    _data["icon"] = icon;
    _data["id"] = id;
    _data["orderCode"] = orderCode;
    _data["orderStatus"] = orderStatus;
    _data["payChannel"] = payChannel;
    _data["payPrice"] = payPrice;
    _data["payTime"] = payTime;
    _data["payType"] = payType;
    _data["receiveAddress"] = receiveAddress;
    _data["sendAddress"] = sendAddress;
    _data["singlePayPrice"] = singlePayPrice;
    if(tokenIdList != null) {
      _data["tokenIdList"] = tokenIdList;
    }
    return _data;
  }
}